/**
 * Project Name:sc-parent-service
 * File Name:MoneyProbabilityImpl.java
 * Package Name:com.sc.probability.impl
 * Date:2018年6月28日下午11:19:17
 * Copyright (c) 2018, bluemobi All Rights Reserved.
 */

package com.sc.probability.impl;

import com.sc.pojo.Customer;
import com.sc.probability.Probability;

/**
 * Description: 目标金额的概率值  <br/>
 * Date:     2018年6月28日 下午11:19:17 <br/>
 * @author   tianyongxu
 * @version
 * @see
 */
public class MoneyProbabilityImpl implements Probability {

    @Override
    public float getProbability(Customer customer) {
        float moneyProbability = 0.0f;
        if (customer.getCmoney() < 200) {
            moneyProbability = 0.1f;
        }
        if (customer.getCmoney() < 400) {
            moneyProbability = 0.2f;
        }
        if (customer.getCmoney() < 600) {
            moneyProbability = 0.1f;
        }
        return moneyProbability;
    }

}

